# Contributor: Maxim Karasev <begs@disroot.org>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=responder
pkgver=3.1.3.0
pkgrel=1
pkgdesc="IPv6/IPv4 LLMNR/NBT-NS/mDNS Poisoner and NTLMv1/2 relay"
url="https://github.com/lgandx/Responder"
arch="noarch"
license="GPL-3.0-or-later"
depends="python3 py3-netifaces"
source="https://github.com/lgandx/Responder/archive/refs/tags/v$pkgver/Responder-$pkgver.tar.gz
	fhs.patch"
builddir="$srcdir/Responder-$pkgver"
options="!check" # no tests

package() {
	mkdir -p "$pkgdir"/usr/share/responder \
		"$pkgdir"/var/log/responder \
		"$pkgdir"/var/lib/responder \
		"$pkgdir"/etc/responder \
		"$pkgdir"/usr/bin

	find -type d -mindepth 1 | xargs cp -rt "$pkgdir"/usr/share/responder
	cp *.py "$pkgdir"/usr/share/responder
	install -Dm644 Responder.conf "$pkgdir"/etc/responder/responder.conf
	ln -s /usr/share/responder/Responder.py "$pkgdir"/usr/bin/responder
}

sha512sums="
cdc802507410563a702102b6192b489fe356127260126c5462e19cc24649c1dd22051366f46a621125be4efb7d6769e9779fc5faf6c2219013b2a117fdffc06c  Responder-3.1.3.0.tar.gz
540c4873a72dd554dae2b75949c86e6c354a6ace69b84e725c60ddddf6ad4448d380f8e3fbf64945e306fb49dad80d6772b5f40a0db48323ae4fc654056a9b58  fhs.patch
"
